package com.lyl.serviceedu.cloudclient;

import com.lyl.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 远程调用 vod 服务的接口
 * 服务熔断
 */
@FeignClient(name = "service-order",fallback = OrderDegradeFeignClient.class)
@Component
public interface OrderClient {

    @GetMapping("/serviceorder/api/order/isBuyCourse/{memberId}/{courseId}")
     R isBuyCourse(@PathVariable("memberId") Long memberId,
                         @PathVariable("courseId") Long courseId);
}